<%--
  Created by IntelliJ IDEA.
  User: liuxianan
  Date: 2021/7/19
  Time: 10:52 下午
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>教师信息管理</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <!-- bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Dashboard Template for Bootstrap</title>
    <!-- Bootstrap core CSS -->
    <%--    <link href="${pageContext.request.contextPath}/asserts/css/bootstrap.min.css" rel="stylesheet">--%>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>

    <!-- Custom styles for this template -->
    <link href="${pageContext.request.contextPath}/asserts/css/dashboard.css" rel="stylesheet">

    <style type="text/css">
        /*.navbar-left{*/
        /*    float: left;*/
        /*}*/

        /*.iRight{*/
        /*    float: right;*/
        /*}*/
    </style>

</head>
<body>




    <div class="main">
<%--        <nav class="navbar navbar-inverse" role="navigation">--%>
<%--            <div class="container-fluid">--%>
<%--                <div class="navbar-header">--%>
<%--                    <a class="navbar-brand" href="${pageContext.request.contextPath}/root/rootIndex">智慧管理</a>--%>
<%--                </div>--%>
<%--                <div>--%>
<%--                    <form class="navbar-form navbar-left" role="search">--%>
<%--                        <div class="form-group">--%>
<%--                            <input type="text" class="form-control form-control-dark w-100" placeholder="Search">--%>
<%--                        </div>--%>
<%--                        <button type="submit" class="btn btn-default">登出</button>--%>
<%--                    </form>--%>
<%--                </div>--%>
<%--            </div>--%>
<%--        </nav>--%>


<%--        <ul class="nav nav-pills nav-stacked navbar-left" style="width:200px;text-align:center">--%>
<%--            <li class="active">--%>
<%--                <a href="#" data-toggle="collapse" data-target=".ok1">学生成长分析平台</a>--%>
<%--                <ul class="nav nav-pills nav-stacked ok1 collapse">--%>
<%--                    <li><a href="${pageContext.request.contextPath}/student/allStudent">学籍管理</a></li>--%>
<%--                </ul>--%>
<%--            </li>--%>
<%--            <li class="active">--%>
<%--                <a href="#" data-toggle="collapse" data-target=".ok2">教师专业发展管理</a>--%>
<%--                <ul class="nav nav-pills nav-stacked ok2 collapse">--%>
<%--                    <li><a href="${pageContext.request.contextPath}/teacher/allTeacher">教师信息管理</a></li>--%>
<%--                    <li><a href="${pageContext.request.contextPath}/teacher/salary">工资福利管理</a></li>--%>
<%--                    <li><a href="${pageContext.request.contextPath}/teacher/achieve">绩效考核</a></li>--%>
<%--                </ul>--%>
<%--            </li>--%>
<%--            <li class="active">--%>
<%--                <a href="#" data-toggle="collapse" data-target=".ok3">教务管理</a>--%>
<%--                <ul class="nav nav-pills nav-stacked ok3 collapse">--%>
<%--                    <li><a href="${pageContext.request.contextPath}/root/course">智能排课</a></li>--%>
<%--                    <li><a href="${pageContext.request.contextPath}/root/selectCourse">选修课管理</a></li>--%>
<%--                    <li><a href="${pageContext.request.contextPath}/root/analyze">分析统计</a></li>--%>
<%--                </ul>--%>
<%--            </li>--%>
<%--        </ul>--%>

        <div class="container">

            <div class="row clearfix">
                <div class="page-header">
                    <h1>
                        <small>教师列表 —— 显示所有教师</small>
                    </h1>
                </div>
            </div>

        </div>


        <div class="row iRight">
            <div class="col-md-4 column">
                <a class="btn btn-primary" href="${pageContext.request.contextPath}/teacher/toAddTeacher">新增</a>
            </div>
            <div class="col-md-4 column">
                <a class="btn btn-primary" href="${pageContext.request.contextPath}/root/rootIndex">返回</a>
            </div>
        </div>

        <div class="row clearfix iRight">
            <div class="col-md-12 column">
                <table class="table table-hover table-striped">
                    <thead>
                    <tr>
                        <th>教师号</th>
                        <th>教师姓名</th>
                        <th>性别</th>
                        <th>生日</th>
                        <th>职位</th>
                        <th>薪资</th>
                        <th>手机</th>
                    </tr>
                    </thead>

                    <tbody>
                    <c:forEach var="teacher" items="${requestScope.get('list')}">
                        <tr>
                            <td>${teacher.getTid()}</td>
                            <td>${teacher.getTname()}</td>
                            <td>${teacher.getTsex()}</td>
                            <td>${teacher.getTbirth()}</td>
                            <td>${teacher.getTpost()}</td>
                            <td>${teacher.getTsalary()}</td>
                            <td>${teacher.getTphoneNumber()}</td>
                            <td>
                                <a href="${pageContext.request.contextPath}/teacher/toUpdateTeacher?Tid=${teacher.getTid()}">更改</a> |
                                <a href="${pageContext.request.contextPath}/teacher/del/${teacher.getTid()}">删除</a>
                            </td>
                        </tr>
                    </c:forEach>
                    </tbody>
                </table>
            </div>
        </div>
    </div>



</body>
</html>
